package com.dbsop.entity;

import com.dbsop.anthorizatiion.ESDocument;
import com.dbsop.anthorizatiion.ESFiledMapping;
import com.dbsop.anthorizatiion.ESId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@ESDocument(index_name = "student",share = 3,max_result = 20000,alias = "S",default_alias_opt = true)
public class Student implements Serializable {

    private static final long serialVersionUID = 1195633151158298118L;

    /**
     * 学号
     */
    @ESId
    private String number;

    /**
     * 名称
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 年级
     */
    private Integer grade;

    /**
     * 班次
     */
    private Integer shift;

    /**
     * 地址
     */
    private String address;

    /**
     * 成绩单
     */
    @ESFiledMapping(columnType = "object")
    private List<Transcript> transcripts;


}
